<?php 
use yii\widgets\ActiveForm;
use yii\helpers\html;
?>

<center style="text-align: 0 auto">
<?php 
$form = ActiveForm::begin([	
	'options'=>['enctype'=>'multipart/form-data','class'=>'form-horizontal'],
	'fieldConfig'=>['template' =>'{label}<div class="col-sm-9">{input}{hint}<span class="help-inline col-xs-12 col-sm-7">{error}</span></div>',
	'labelOptions'=>['class' =>'col-sm-3 control-label no-padding-right'],
	'inputOptions'=>['class' =>'col-xs-10 col-sm-4'],
	'errorOptions'=>['class' =>'help-block middle']
	 ]
    ])
/*@var $form yii\widgets\ActiveForm */
?>
<?= $form->field($updatamodel, 'ID')->textInput(['value'=>$ID]) ?>
<?= $form->field($updatamodel, 'MerchandiseCID')->textInput(['value'=>$MerchandiseCID]) ?>
<?= $form->field($updatamodel, 'MerchandisePID')->textInput(['value'=>$MerchandisePID]) ?>
<?= $form->field($updatamodel, 'MerchandiseCName')->textInput(['value'=>$MerchandiseCName]) ?>
<?= $form->field($updatamodel, 'SortID')->textInput(['value'=>$SortID]) ?>
<?= $form->field($updatamodel, 'State')->textInput(['value'=>$State]) ?>
<?=Html::input('hidden','action','update') ?>
		   <div class="form-group has-warning">
		   <label for="inputWarning" class="col-xs-6 col-sm-3 control-label no-padding-right"></label>
		   <div class="col-xs-12 col-sm-4">															
		   <?= Html::submitButton('修改',['class'=>'btn btn-info btn-sm tooltip-info']) ?>
		   <?= "&nbsp;&nbsp;"?>
		   <?= Html::resetButton('重置',['class'=>'btn btn-danger btn-sm tooltip-error']) ?>
		   </div>
		   </div>		
<?php 
ActiveForm::end()
?>
</center>